From: Jasper St. Pierre Date: Mon, 1 Aug 2011 22:25:59 +0000 (-0400) Subject: telepathyClient: Add our own translations for timestamps X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7983 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=aa1405e4eaa;p=gnome-shell.git telepathyClient: Add our own translations for timestamps As an effort to prevent a string freeze to land timestamps on 3.0, we reused translations for the calendar. Now that the string freeze is long gone, make some proper strings. https://bugzilla.gnome.org/show_bug.cgi?id=640271 --- diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index fb2d83415..311d02eba 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -738,18 +738,18 @@ ChatNotification.prototype = { If applicable, replace %X with a strftime format valid for your locale, without seconds. */ // xgettext:no-c-format - format = _("Sent at %X on %A"); - - // FIXME: The next two are stolen from calendar.js with the comment to avoid - // a string-freeze break. They should be replaced with better strings - // with 'Sent at', appropriate context and appropriate translator comment. + format = _("Sent at %X on %A"); } else if (date.getYear() == now.getYear()) { - /* Translators: Shown on calendar heading when selected day occurs on current year */ - format = C_("calendar heading", "%A, %B %d"); + /* Translators: this is a time format in the style of "Wednesday, May 25", + shown when you get a chat message in the same year. */ + // xgettext:no-c-format + format = _("Sent on %A, %B %d"); } else { - /* Translators: Shown on calendar heading when selected day occurs on different year */ - format = C_("calendar heading", "%A, %B %d, %Y"); + /* Translators: this is a time format in the style of "Wednesday, May 25, 2012", + shown when you get a chat message in a different year. */ + // xgettext:no-c-format + format = _("Sent on %A, %B %d, %Y"); } return date.toLocaleFormat(format);